package com.leolian.spring01.beanannotation.jsr;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;
import javax.annotation.Resource;
import javax.inject.Inject;
import javax.inject.Named;

import org.springframework.stereotype.Service;

//@Service
@Named
public class JsrService {
	
	//@Resource
	@Inject
	private JsrDao jsrDao;
	
	/*@PostConstruct
	public void init(){
		System.out.println("Post-Constructor");
	}*/
	
	
	public void save(){
		System.out.println("service -- save");
		jsrDao.save();
	}
	
	/*@PreDestroy
	public void destory(){
		System.out.println("Pre-Destory");
	}*/
}
